package org.geeks.domain;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * Address类
 * 
 * @author Geek4J
 *
 */
@Entity
@Getter
@Setter
@ToString(callSuper = true)
public class Address extends Base {

	private static final long serialVersionUID = 1546277117624496322L;

	/**
	 * 地址名称
	 */
	private String name;

	@ManyToOne(cascade = CascadeType.ALL)
	@JoinColumn(name = "user_id")
	private User user;
}
